﻿// See https://aka.ms/new-console-template for more information



//AspectCore.DependencyInjection dependency =   AspectCore.Configuration.InterceptorCollection()
using AopDemo;
using AspectCore.DynamicProxy;

using (IProxyGenerator proxy = new AspectCore.DynamicProxy.ProxyGeneratorBuilder().Build())
{

    var customer = proxy.CreateInterfaceProxy<ICustomService, CustomService>();

    customer.Call();


}


Console.ReadLine();




